<?php
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/admin/public/header.php');
include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/func.php');
$config = include_once($_SERVER['CONTEXT_DOCUMENT_ROOT'].'/public/config.php');
$id=$_POST['id'];
$qal = update($config,'biaoqian',$_POST);


if ($qal) {
	      echo '<script>alert("修改成功");window.location.href="index.php"</script>';
    }else{
	     '<script>alert("修改失败");window.location.href="xiugai1.php"</script>';
    };

?>